#define  _CRT_SECURE_NO_WARNINGS



#include<stdio.h>

int main()
{
	char n = 0;
	int arr[26] = { 0 }, i = 0, flag = 1;
	char temp[] = "abcdefghijklmnopqrstuvwxyz";
	while (scanf("%c", &n) != EOF)
	{
		if (n == '#')
		{
			break;
		}
		for (i = 0; i < 26; i++)
		{
			if (n == temp[i])
			{
				arr[i]++;
				break;
			}
		}
	}
	for (i = 0; i < 26; i++)
	{
		printf("%c %d\n", temp[i], arr[i]);
	}

	return 0;
}